#!/usr/bin/env python
#
#====================
# arduino-webinlights - code.google.com/p/arduino-webinlights
# Developed by tommed (www.tommed.co.uk)
#
# TEST PROGRAM
# ============
# Tests that the arduino and the tty connection work by
# incrementing the lights every second.
#====================

import serial
import time

s = serial.Serial(argv[0], 9600)
while 1:
  s.write("1")
  time.sleep(1)
